home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / povscn / level1 / pov / intee1 < prev    next >
Text File  |  1995-11-08  |  2KB  |  77 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Intersection of two cylinders,  with holes cut from each one, in pink
  3. // marblized stone.
  4. // File by Dan Farmer.
  5. // Demonstrates CSG intersection,  layered stone texture.
  6. // POV-Ray 2.0 Time: about 3 hours @640x480+a0.2 on 486/33
  7.  
  8. #version 3.0
  9. global_settings { assumed_gamma 2.2 }
  10.  
  11. #include "colors.inc"           // Standard colors library
  12. #include "shapes.inc"           // Commonly used object shapes
  13. #include "textures.inc"         // LOTS of neat textures.  Lots of NEW textures.
  14.  
  15. camera {
  16.    location <0.0, 10, -26>
  17.    direction <0.0, 0.0,  1.0>
  18.    up  <0.0, 1.0, 0.0>
  19.    right <4/3, 0.0, 0.0>
  20.    look_at <0, 0, 0>
  21. }
  22.  
  23. // Light source
  24. light_source { <-10, 20, -25> color White }
  25. light_source { <0, 0, 0> color White }
  26.  
  27. #declare Color1A = color DustyRose
  28. #declare Color1B = color DarkSlateGray
  29.  
  30. intersection {
  31.    object { Cylinder_X }
  32.    object { Cylinder_Y }
  33.    object { Cylinder_X inverse scale <1, 0.5, 0.5> }  // small hole
  34.    object { Cylinder_Y inverse scale <0.5, 1, 0.5> }  // ditto
  35.  
  36.    // A great looking pinkish marble.  Except that it doesn't use marble
  37.    // or agate... it's all done with bozo and granite!
  38.  
  39.    // Underlying surface is very subtly mottled with bozo in pinks and
  40.    // grays.
  41.  
  42.    texture {
  43.       finish {ambient 0.25 }
  44.       pigment {
  45.          bozo
  46.          turbulence 0.25
  47.          color_map {
  48.             [0.0 1.0 color red 0.9 green 0.75 blue 0.75
  49.                      color red 0.6 green 0.6 blue 0.6 ]
  50.          }
  51.          scale 0.4
  52.       }
  53.    }
  54.  
  55.    // Second layer texture has some filter values, yet a fair amount of color
  56.    // Viening is kept quite thin.
  57.    texture {
  58.       finish {
  59.          Glossy
  60.          phong 0.25
  61.          phong_size 75
  62.          brilliance 4
  63.       }
  64.       pigment {
  65.          granite
  66.          color_map {
  67.             [0.0 0.9  color Color1A filter 1 color Color1A filter 0.5 ]
  68.             [0.9 1.0  color Color1B color Color1B ]
  69.          }
  70.          scale 2
  71.       }
  72.    }
  73.  
  74.    scale 10
  75.    rotate y*45
  76. }
  77.